﻿using LOLApi.Models;
using Prism.Common;
using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tryit
{
    public class TeamData : BindableBase
    {
        private string _leftWin;
        public string LeftWin
        {
            get { return _leftWin; }
            set
            {
                // 转换逻辑
                if (value == "Win")
                {
                    SetProperty(ref _leftWin, "胜方");
                }
                else if (value == "Fail")
                {
                    SetProperty(ref _leftWin, "败方");
                }
                else
                {
                    SetProperty(ref _leftWin, value); // 处理其他未定义的值
                }
            }
        }
        private string _rightWin;
        public string RightWin
        {
            get { return _rightWin; }
            set
            {
                // 转换逻辑
                if (value == "Win")
                {
                    SetProperty(ref _rightWin, "胜方");
                }
                else if (value == "Fail")
                {
                    SetProperty(ref _rightWin, "败方");
                }
                else
                {
                    SetProperty(ref _rightWin, value); // 处理其他未定义的值
                }
            }
        }
        /// <summary>
        /// 击杀/死亡/助攻
        /// </summary>
        private string _leftKillsAndDeathAndAssists;
        public string LeftKillsAndDeathAndAssists
        {
            get { return _leftKillsAndDeathAndAssists; }
            set { SetProperty(ref _leftKillsAndDeathAndAssists, value); }
        }
        /// <summary>
        /// 击杀/死亡/助攻
        /// </summary>
        private string _rightKillsAndDeathAndAssists;
        public string RightKillsAndDeathAndAssists
        {
            get { return _rightKillsAndDeathAndAssists; }
            set { SetProperty(ref _rightKillsAndDeathAndAssists, value); }
        }


        /// <summary>
        /// 左边团队经济
        /// </summary>
        private string _leftTeamMoney;
        public string LeftTeamMoney
        {
            get { return _leftTeamMoney; }
            set { SetProperty(ref _leftTeamMoney, value); }
        }
        /// <summary>
        /// 右边团队经济
        /// </summary>
        private string _rightTeamMoney;
        public string RightTeamMoney
        {
            get { return _rightTeamMoney; }
            set { SetProperty(ref _rightTeamMoney, value); }
        }
        /// <summary>
        /// 防御塔
        /// </summary>
        private string _leftKillTower;
        public string LeftKillTower
        {
            get { return _leftKillTower; }
            set { SetProperty(ref _leftKillTower, value); }
        }
        /// <summary>
        /// 击杀防御塔图片
        /// </summary>
        private string _killTowerImg;
        public string KillTowerImg
        {
            get { return _killTowerImg; }
            set { SetProperty(ref _killTowerImg, value); }
        }
        /// <summary>
        /// 水晶
        /// </summary>
        private string _leftKillinhibito;
        public string LeftKillinhibito
        {
            get { return _leftKillinhibito; }
            set { SetProperty(ref _leftKillinhibito, value); }
        }
        /// <summary>
        /// 击杀水晶图片
        /// </summary>
        private string _killinhibitoImg;
        public string KillinhibitoImg
        {
            get { return _killinhibitoImg; }
            set { SetProperty(ref _killinhibitoImg, value); }
        }
        /// <summary>
        /// 大龙
        /// </summary>
        private string _leftKillbaron;
        public string LeftKillbaron
        {
            get { return _leftKillbaron; }
            set { SetProperty(ref _leftKillbaron, value); }
        }
        /// <summary>
        /// 击杀大龙图片
        /// </summary>
        private string _killbaronImg;
        public string KillbaronImg
        {
            get { return _killbaronImg; }
            set { SetProperty(ref _killbaronImg, value); }
        }
        /// <summary>
        /// 小龙
        /// </summary>
        private string _leftKilldragon;
        public string LeftKilldragon
        {
            get { return _leftKilldragon; }
            set { SetProperty(ref _leftKilldragon, value); }
        }
        /// <summary>
        /// 击杀小龙图片
        /// </summary>
        private string _killdragonImg;
        public string KilldragonImg
        {
            get { return _killdragonImg; }
            set { SetProperty(ref _killdragonImg, value); }
        }
        /// <summary>
        /// 防御塔
        /// </summary>
        private string _rightKillTower;
        public string RightKillTower
        {
            get { return _rightKillTower; }
            set { SetProperty(ref _rightKillTower, value); }
        }
        /// <summary>
        /// 水晶
        /// </summary>
        private string _rightKillinhibito;
        public string RightKillinhibito
        {
            get { return _rightKillinhibito; }
            set { SetProperty(ref _rightKillinhibito, value); }
        }
        /// <summary>
        /// 大龙
        /// </summary>
        private string _rightKillbaron;
        public string RightKillbaron
        {
            get { return _rightKillbaron; }
            set { SetProperty(ref _rightKillbaron, value); }
        }
        /// <summary>
        /// 小龙
        /// </summary>
        private string _rightKilldragon;
        public string RightKilldragon
        {
            get { return _rightKilldragon; }
            set { SetProperty(ref _rightKilldragon, value); }
        }
        private ObservableCollection<TeamDataDetail> _leftTeamDataDetail = new ObservableCollection<TeamDataDetail>();
        public ObservableCollection<TeamDataDetail> LeftTeamDataDetail
        {
            get { return _leftTeamDataDetail; }
            set { SetProperty(ref _leftTeamDataDetail, value); }
        }
        private ObservableCollection<TeamDataDetail> _rightTeamDataDetail = new ObservableCollection<TeamDataDetail>();
        public ObservableCollection<TeamDataDetail> RightTeamDataDetail
        {
            get { return _rightTeamDataDetail; }
            set { SetProperty(ref _rightTeamDataDetail, value); }
        }

    }
}
